<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/vue.js"></script>
</head>
<body>

    <div id="app">
        {{getCurrentTime()}}

        {{getCurrentTime1}}
    </div>

</body>
<script>
    var vi = new Vue({
        el:"#app",
        data:{

        },
        methods:{
            getCurrentTime:function () {
                return new Date();
            }
        },
        computed:{
            getCurrentTime1:function () {
                return new Date();
            }
        }

    })
</script>
</html>